package org.jeecg.modules.business.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.jeecg.modules.business.entity.BusLivingCustomer;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.jeecg.modules.business.vo.BusLivingCustomerVo;

/**
 * @Description: bus_living_customer
 * @Author: jeecg-boot
 * @Date:   2023-04-04
 * @Version: V1.0
 */
public interface BusLivingCustomerMapper extends BaseMapper<BusLivingCustomer> {

    @Select("<script> select blc.*,bc.address ,bc.nation from bus_living_customer blc " +
            "inner join bus_customer bc on blc.customer_id = bc.id " +
            "where blc.living_order_id in" +
            "<foreach item='id' index='index' collection='livingOrderIds' open='(' separator=',' close=')'> " +
            "#{id} </foreach> </script>")
    List<BusLivingCustomerVo> queryCustomVoList(List<String> livingOrderIds);

}
